import { ref } from "vue";

const testNum:Ref<number> = ref(0)

export function postBtnStringOne(url:string,data:JSON){
    fetch(url,{
        method: 'POST',
        body: JSON.stringify(data), 
        headers: {
            'Content-Type': 'application/json' // 根据发送的数据类型调整头部
        }
    }).then(async res=>{return res.json()}).then(async data1 => {
        console.log(data1)
    }).catch(error=>console.log(error))
} 